package com.ruoyi.oa.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 公车使用申请业务对象 oa_admin_car
 *
 * @author ruoyi
 * @date 2023-08-28
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class OaAdminCarBo extends BaseEntity {

    /**
     * 主键
     */
    private String id;

    /**
     * 部门id
     */
    private Long deptId;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 用车事由
     */
    @NotBlank(message = "用车事由不能为空", groups = { AddGroup.class, EditGroup.class })
    private String busReason;

    /**
     * 开始时间
     */
    @NotNull(message = "开始时间不能为空", groups = { AddGroup.class, EditGroup.class })
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd")
    private Date busStartDate;

    /**
     * 结束时间
     */
    @NotNull(message = "结束时间不能为空", groups = { AddGroup.class, EditGroup.class })
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd")
    private Date busEndDate;

    /**
     * 用车时长
     */
    @NotBlank(message = "用车时长不能为空", groups = { AddGroup.class, EditGroup.class })
    private String useCount;

    /**
     * 用车目的地
     */
    @NotBlank(message = "用车目的地不能为空", groups = { AddGroup.class, EditGroup.class })
    private String useDistance;

    /**
     * 车辆类型
     */
    @NotBlank(message = "车辆类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String carType;

    /**
     * 附件
     */
    private String attachment;



    /**
     * 提交时间范围
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    private List<Date> submitTimeList;

    /**
    * 提交时间 终
    */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date submitStartDate;

    /**
     * 提交时间起
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date submitEndDate;
    /**
     * 流程状态
     */
    private String status;


    /**
     * 创建
     */
    private String createUser;


    /**
     * 出差开始时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    private Date startDate;

    /**
     * 出差结束时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    private Date endDate;

}
